package com.ljd.server.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * mybatis-plus配置
 *
 * @author ljd on 2022/1/25
 * @PACKAGE_NAME: com.ljd.server.config
 * @PROJECT_NAME: yeb
 */
@Configuration
public class MyBatisPlusConfig {

    // 配置分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }


}
